import request from '@/utils/request'

export function getBasicConfig (params:{field:string}) {
    return request({
        url: 'system.basic_config/index',
        method: 'GET',
        params
    })
}

export function getConfigItems (params:{tab_id:number | string}) {
    return request({
        url: 'system.basic_config/getItems',
        method: 'GET',
        params
    })
}

export function saveConfig (data:any) {
    return request({
        url: 'system.basic_config/save',
        method: 'POST',
        data
    })
}